PowerTCP Mail for .NET
Read(Byte[]) Method
See Also  Send comments on this topic.
Dart.PowerTCP.Mail Namespace > MimeAttachmentStream Class > Read Method : Read(Byte[]) Method




buffer
The storage location for the received data.
Reads at least one byte of data from the Stream and copies it into the provided buffer.

Syntax

Visual Basic (Declaration) 
Public Overloads Shadows Function Read( _
   ByVal buffer() As Byte _
) As Integer
Visual Basic (Usage)Copy Code
Dim instance As MimeAttachmentStream
Dim buffer() As Byte
Dim value As Integer
 
value = instance.Read(buffer)
C# 
public new int Read( 
   byte[] buffer
)
Managed Extensions for C++ 
public: new int Read( 
   byte[]* buffer
) 
C++/CLI 
public:
new int Read( 
   array<byte>^ buffer
) 

Parameters

buffer
The storage location for the received data.

Return Value

The total number of bytes read into the buffer.

Exceptions

ExceptionDescription
System.IO.IOExceptionThrown when the Stream is not readable.
System.ArgumentNullExceptionThrown when the buffer or callback is null.

Remarks

This is a convenience method for all derived classes, calling Read(buffer,0, buffer.Length) on the stream.

Requirements

Target Platforms: Microsoft .NET Framework 2.0

See Also

Documentation Version 3.2
© 2010 Dart Communications. All Rights Reserved.